class Person{
    String name;
    public void sayHowDoYouDo(Person p){
        System.out.println(name +":"+p.name+"在打招呼");
    }
    public void saySomething(){
        System.out.println(name+":say something");
    }
    public void goodBye(){
        
    }
}
//Java基础语法
//Java的具体应用：：网络编程、数据库编程、基础类库（集合类）
//二叉树、红黑树、图、快排
public class MainP93_8 {
    public static void main(String[] args){
        Person Mike=new Person();
        Person Joy=new Person();
        Mike.name="Mike";
        Joy.name="Joy";
        Mike.sayHowDoYouDo(Joy);//p=Joy
        Joy.sayHowDoYouDo(Mike);//p=Mike
        Mike.saySomething();
        Joy.saySomething();
    }
}

